package com.trkj.service;

import com.trkj.dao.RegionDao;
import com.trkj.entity.BuildingEntity;
import com.trkj.entity.HouseEntity;
import com.trkj.entity.RegionEntity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class RegionImpl implements RegionService{
    @Autowired
    private RegionDao regionDao;
    @Override
    public boolean AddRegion(RegionEntity region) {
        return regionDao.AddRegion(region);
    }

    @Override
    public List<RegionEntity> selectAll() {
        return regionDao.selectAll();
    }

    @Override
    public boolean deleteRegion(int id) {
        return regionDao.deleteRegion(id);
    }
    @Override
    public boolean updateRegion(RegionEntity region) {
        return regionDao.updateRegion(region);
    }


}
